package com.yonyou.crm.base.product.rmimpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yonyou.crm.base.product.entity.PrdtypeVO;
import com.yonyou.crm.base.product.rmitf.IPrdtypeRmService;
import com.yonyou.crm.base.product.service.PrdtypeBizServiceImpl;
import com.yonyou.crm.common.page.entity.Page;

@Service("dubboxProviderPrdtype")
public class PrdtypeRmServiceImpl implements IPrdtypeRmService {
	
	@Autowired
	private PrdtypeBizServiceImpl bizService;
	
	@Override
	public PrdtypeVO insert(PrdtypeVO prdtype) {
		return bizService.saveVO(prdtype);
	}

	@Override
	public Page<PrdtypeVO> getPage(Page<PrdtypeVO> page, Map<String, Object> paraMap) {
		return bizService.getPage(page, paraMap);
	}
	
	@Override
	public List<PrdtypeVO> getList(Map<String, Object> condMap) {
		return bizService.getList(condMap);
	}
	
	@Override
	public PrdtypeVO getDetail(Long id) {
		return bizService.getDetailById(id);
	}

	@Override
	public PrdtypeVO update(PrdtypeVO prdtype) {
		return bizService.updateVO(prdtype);
	}

	@Override
	public List<Map<String,Object>> getTree() {
		return bizService.getTree();
	}

	@Override
	public String batchDeleteByIDs(String[] ids) {
		return bizService.batchDeleteByIDs(ids);
	}

	@Override
	public List<Map<String, Object>> getRefTree(Map<String, Object> paraMap) {
		return bizService.getRefTree(paraMap);
	}

	@Override
	public Page<PrdtypeVO> batchUpdateEnableState(String[] ids, Integer enableState, Page<PrdtypeVO> page, Map<String, Object> paraMap) {
		bizService.batchUpdateEnableState(ids, enableState);
		return bizService.getPage(page, paraMap);
	}

}
